import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'


let app=createApp(App)
// 
import { Edit, Delete } from '@element-plus/icons-vue'

app.component('edit', Edit)
app.component('delete', Delete)

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
app.use(ElementPlus)
//引入所有图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// 
import $axios from "./axios/$axios"
app.config.globalProperties.$axios=$axios 

// 
import { createPinia } from 'pinia'
app.use(createPinia())

// 二维码生成器
// import VueQriously from 'vue-qriously'
// app.use(VueQriously)



import $obj from "./commondata/$obj.js" 
app.use($obj)


import IconText from "./components/tool/IconText.vue"
app.component("IconText",IconText)

// import $axios from "./http/$axios.js"
// app.use($axios)

//配置全局请求服务器资源公共路径
app.config.globalProperties.$imgurl="http://localhost:7001/public/"

app.use(router).mount('#app')
